#!/usr/local/bin/python3
# -*- coding: UTF-8 -*-
"""
@author:apple
@file:os_module.py
@time:2021/08/18
"""
import os

def test01():
    ...
    print(os.name)
    print(os.path.abspath('./'))



def test02():
    """
    import os
    from os.path import join, getsize
    for root, dirs, files in os.walk('python/Lib/email'):
        print(root, "consumes", end="")
        print(sum(getsize(join(root, name)) for name in files), end="")
        print("bytes in", len(files), "non-directory files")
        if 'CVS' in dirs:
            dirs.remove('CVS')  # don't visit CVS directories
    """
    for root, dirs, files in os.walk('/Users/apple/Documents/work/zy_sdk/qudao'):
        ...
        print('root:{}'.format(root))
        if 'ZYSDK' in dirs:
            ...
            dirs.remove('ZYSDK')



if __name__ == '__main__':
    pass
    test02()